const host = 'https://oeas.club/';
const config = {
  host:'https://oeas.club/',
  domain:{
    'myInfo': host + 'miniprogram/api/user/info',
    'myOpenid': host + 'miniprogram/api/user/openid?code=',
    'myContent':host + 'miniprogram/api/user/my/content',
    'myUserAdd': host + 'miniprogram/api/user/add',
    'feedback': host + 'miniprogram/api/user/feedback/add',
    'cate': host + 'miniprogram/api/cate/main',
    'topic': host + 'miniprogram/api/topic/main',
    'topicDetail': host + 'miniprogram/api/topic/detail',
    'likeAdd': host + 'miniprogram/api/like/add', 
    'shareAdd': host + 'miniprogram/api/share/add', 
    'commentAdd': host + 'miniprogram/api/comment/add',
    'commentMain': host + 'miniprogram/api/comment/main',
    'news': host + 'miniprogram/api/content/news/main',//综合新闻
    'newsDetail': host + 'miniprogram/api/content/detail',//综合详情
    'strategy': host + 'miniprogram/api/content/strategy/main',//综合攻略
    'dynamicAdd': host + 'miniprogram/api/dynamic/add',//动态添加
    'dynamicMain': host + 'miniprogram/api/dynamic/main',//动态列表
  },
}

const formatNumber = n => {
  n = n.toString()
  return n[1] ? n : '0' + n
}

module.exports = {
  serverCfg: config
}
